libmystdio.a:my_stdio.o my_string.o
	@ar -rc $@ $^
	@echo "打包静态库"

%.o:%.c
	@gcc -c $<
	@echo "生成目标文件"

.PHONY:clean
clean:
	@rm -f .a *.o
	@echo "清理完成"

.PHONY:output
output:
	@mkdir -p stdc/include
	@mkdir -p stdc/lib
	@cp -f *.h stdc/include
	@cp -f *.a stdc/lib
	@echo "发布完成"
